Fix vif scripts for domains with more than one ip.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 7 Sep 2005 17:26:27 +0000 (17:26 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 7 Sep 2005 17:26:27 +0000 (17:26 +0000)
As reported in bug 218 by christian@prehl.de.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/examples/vif-bridge
tools/examples/vif-route

index f27a4b03eef9136aab6cefc2110b7ee68a78aab6..2a3903a31031cfef5967f36512c2fdc3aeaffb04 100755 (executable)
@@ -80,7 +80,7 @@ if [ "${brcmd}" == "addif" ] ; then
 fi
 ifconfig ${vif} $OP
 
-if [ ${ip} ] ; then
+if [ "${ip}" ] ; then
 
     # If we've been given a list of IP networks, allow pkts with these src addrs.
     for addr in ${ip} ; do
index e2ff8b0f198dc06389fc72c4a434caa4439c679c..2c0b2d1d3a59314fb44988b1781f400597abba31 100755 (executable)
@@ -63,7 +63,7 @@ case $OP in
         ;;
 esac
 
-if [ ${ip} ] ; then
+if [ "${ip}" ] ; then
 
     # If we've been given a list of IP networks, allow pkts with these src addrs.
     for addr in ${ip} ; do